<include file="Public/header" title="添加博文" />
<include file="Public/sidebar" />



<!-- 内容开始 -->
<div class="col-sm-9 col-xm-9 col-md-10  content">
  <form action="__CONTROLLER__/addArticleHandle" method="post">
 	<table class="table">
 		<tr>
 			<th colspan="2">添加博文</th>
 		</tr>
 		<tr>
 			<td>博文分类</td>
 			<td>
 				<select name="cate_id" id="" class="postform">
 					<option value="">===请选择分类===</option>
 					<foreach name="cate" item="v">
						<option value="{$v.id}">{$v.html}{$v.name}</option>
 					</foreach>
 				</select>
 			</td>
 		</tr>
 		<tr>
 			<td>博文属性</td>
 			<td>
 				<foreach name="attr" item="v">
					<label style="margin-right:5px;">
						<input type="checkbox" name="attr_id[]" value="{$v.id}">&nbsp;{$v.name}
					</label>
 				</foreach>
 			</td>
 		</tr>
 		<tr>
 			<td>点击次数</td>
 			<td><input type="text" class="form-control" name="click" value="100"/></td>
 		</tr> 		
 		<tr>
 			<td>标题</td>
 			<td><input type="text" class="form-control" name="title"/></td>
 		</tr>
 		<tr>
 			<td colspan="2">
 				<textarea name="content" id="content" cols="30" rows="10"></textarea>
 			</td>
 		</tr>
 		<tr>
 			<td align="center"><input type="submit" class="btn btn-success" value="添加博文"></td>
 		</tr>
 	</table>
  </form>
</div>
<!-- 内容结束 -->

<script type="text/javascript" src="__ROOT__/Data/ueditor/ueditor.config.js"></script>>
<script type="text/javascript" src="__ROOT__/Data/ueditor/ueditor.all.js"></script>>
<script type="text/javascript">
	window.UEDITOR_CONFIG.initialFrameHeight=450;
	window.UEDITOR_CONFIG.savePath = ['Uploads']; //添加这一行就不会出错了
	window.UEDITOR_CONFIG.imageUrl     = "__CONTROLLER__/upload";
	window.UEDITOR_CONFIG.imagePath    = "__ROOT__/Uploads";
    var editor = UE.getEditor('content');
</script>
<include file="Public/footer" />
